(0) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
a(C(x1, x2), y) → C(a(x1, y), a(x2, C(x1, x2)))
a(Z, y) → Z
eqZList(C(x1, x2), C(y1, y2)) → and(eqZList(x1, y1), eqZList(x2, y2))
eqZList(C(x1, x2), Z) → False
eqZList(Z, C(y1, y2)) → False
eqZList(Z, Z) → True
second(C(x1, x2)) → x2
first(C(x1, x2)) → x1
The (relative) TRS S consists of the following rules:
and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
Rewrite Strategy: INNERMOST
(1) RenamingProof (EQUIVALENT transformation)
Renamed function symbols to avoid clashes with predefined symbol.
(2) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
a(C(x1, x2), y) → C(a(x1, y), a(x2, C(x1, x2)))
a(Z, y) → Z
eqZList(C(x1, x2), C(y1, y2)) → and(eqZList(x1, y1), eqZList(x2, y2))
eqZList(C(x1, x2), Z) → False
eqZList(Z, C(y1, y2)) → False
eqZList(Z, Z) → True
second(C(x1, x2)) → x2
first(C(x1, x2)) → x1
The (relative) TRS S consists of the following rules:
and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
Rewrite Strategy: INNERMOST
(3) SlicingProof (LOWER BOUND(ID) transformation)
Sliced the following arguments:
a/1
(4) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
a(C(x1, x2)) → C(a(x1), a(x2))
a(Z) → Z
eqZList(C(x1, x2), C(y1, y2)) → and(eqZList(x1, y1), eqZList(x2, y2))
eqZList(C(x1, x2), Z) → False
eqZList(Z, C(y1, y2)) → False
eqZList(Z, Z) → True
second(C(x1, x2)) → x2
first(C(x1, x2)) → x1
The (relative) TRS S consists of the following rules:
and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
Rewrite Strategy: INNERMOST
(5) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)
Infered types.
(6) Obligation:
Innermost TRS:
Rules:
a(C(x1, x2)) → C(a(x1), a(x2))
a(Z) → Z
eqZList(C(x1, x2), C(y1, y2)) → and(eqZList(x1, y1), eqZList(x2, y2))
eqZList(C(x1, x2), Z) → False
eqZList(Z, C(y1, y2)) → False
eqZList(Z, Z) → True
second(C(x1, x2)) → x2
first(C(x1, x2)) → x1
and(False, False) → False
and(True, False) → False
and(False, True) → False
and(True, True) → True
Types:
a :: C:Z → C:Z
C :: C:Z → C:Z → C:Z
Z :: C:Z
eqZList :: C:Z → C:Z → False:True
and :: False:True → False:True → False:True
False :: False:True
True :: False:True
second :: C:Z → C:Z
first :: C:Z → C:Z
hole_C:Z1_0 :: C:Z
hole_False:True2_0 :: False:True
gen_C:Z3_0 :: Nat → C:Z
(7) OrderProof (LOWER BOUND(ID) transformation)
Heuristically decided to analyse the following defined symbols:
a, eqZList
(8) Obligation:
Innermost TRS:
Rules:
a(
C(
x1,
x2)) →
C(
a(
x1),
a(
x2))
a(
Z) →
ZeqZList(
C(
x1,
x2),
C(
y1,
y2)) →
and(
eqZList(
x1,
y1),
eqZList(
x2,
y2))
eqZList(
C(
x1,
x2),
Z) →
FalseeqZList(
Z,
C(
y1,
y2)) →
FalseeqZList(
Z,
Z) →
Truesecond(
C(
x1,
x2)) →
x2first(
C(
x1,
x2)) →
x1and(
False,
False) →
Falseand(
True,
False) →
Falseand(
False,
True) →
Falseand(
True,
True) →
TrueTypes:
a :: C:Z → C:Z
C :: C:Z → C:Z → C:Z
Z :: C:Z
eqZList :: C:Z → C:Z → False:True
and :: False:True → False:True → False:True
False :: False:True
True :: False:True
second :: C:Z → C:Z
first :: C:Z → C:Z
hole_C:Z1_0 :: C:Z
hole_False:True2_0 :: False:True
gen_C:Z3_0 :: Nat → C:Z
Generator Equations:
gen_C:Z3_0(0) ⇔ Z
gen_C:Z3_0(+(x, 1)) ⇔ C(Z, gen_C:Z3_0(x))
The following defined symbols remain to be analysed:
a, eqZList
(9) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
a(
gen_C:Z3_0(
n5_0)) →
gen_C:Z3_0(
n5_0), rt ∈ Ω(1 + n5
0)
Induction Base:
a(gen_C:Z3_0(0)) →RΩ(1)
Z
Induction Step:
a(gen_C:Z3_0(+(n5_0, 1))) →RΩ(1)
C(a(Z), a(gen_C:Z3_0(n5_0))) →RΩ(1)
C(Z, a(gen_C:Z3_0(n5_0))) →IH
C(Z, gen_C:Z3_0(c6_0))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(10) Complex Obligation (BEST)
(11) Obligation:
Innermost TRS:
Rules:
a(
C(
x1,
x2)) →
C(
a(
x1),
a(
x2))
a(
Z) →
ZeqZList(
C(
x1,
x2),
C(
y1,
y2)) →
and(
eqZList(
x1,
y1),
eqZList(
x2,
y2))
eqZList(
C(
x1,
x2),
Z) →
FalseeqZList(
Z,
C(
y1,
y2)) →
FalseeqZList(
Z,
Z) →
Truesecond(
C(
x1,
x2)) →
x2first(
C(
x1,
x2)) →
x1and(
False,
False) →
Falseand(
True,
False) →
Falseand(
False,
True) →
Falseand(
True,
True) →
TrueTypes:
a :: C:Z → C:Z
C :: C:Z → C:Z → C:Z
Z :: C:Z
eqZList :: C:Z → C:Z → False:True
and :: False:True → False:True → False:True
False :: False:True
True :: False:True
second :: C:Z → C:Z
first :: C:Z → C:Z
hole_C:Z1_0 :: C:Z
hole_False:True2_0 :: False:True
gen_C:Z3_0 :: Nat → C:Z
Lemmas:
a(gen_C:Z3_0(n5_0)) → gen_C:Z3_0(n5_0), rt ∈ Ω(1 + n50)
Generator Equations:
gen_C:Z3_0(0) ⇔ Z
gen_C:Z3_0(+(x, 1)) ⇔ C(Z, gen_C:Z3_0(x))
The following defined symbols remain to be analysed:
eqZList
(12) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
eqZList(
gen_C:Z3_0(
+(
1,
n148_0)),
gen_C:Z3_0(
n148_0)) →
False, rt ∈ Ω(1 + n148
0)
Induction Base:
eqZList(gen_C:Z3_0(+(1, 0)), gen_C:Z3_0(0)) →RΩ(1)
False
Induction Step:
eqZList(gen_C:Z3_0(+(1, +(n148_0, 1))), gen_C:Z3_0(+(n148_0, 1))) →RΩ(1)
and(eqZList(Z, Z), eqZList(gen_C:Z3_0(+(1, n148_0)), gen_C:Z3_0(n148_0))) →RΩ(1)
and(True, eqZList(gen_C:Z3_0(+(1, n148_0)), gen_C:Z3_0(n148_0))) →IH
and(True, False) →RΩ(0)
False
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(13) Complex Obligation (BEST)
(14) Obligation:
Innermost TRS:
Rules:
a(
C(
x1,
x2)) →
C(
a(
x1),
a(
x2))
a(
Z) →
ZeqZList(
C(
x1,
x2),
C(
y1,
y2)) →
and(
eqZList(
x1,
y1),
eqZList(
x2,
y2))
eqZList(
C(
x1,
x2),
Z) →
FalseeqZList(
Z,
C(
y1,
y2)) →
FalseeqZList(
Z,
Z) →
Truesecond(
C(
x1,
x2)) →
x2first(
C(
x1,
x2)) →
x1and(
False,
False) →
Falseand(
True,
False) →
Falseand(
False,
True) →
Falseand(
True,
True) →
TrueTypes:
a :: C:Z → C:Z
C :: C:Z → C:Z → C:Z
Z :: C:Z
eqZList :: C:Z → C:Z → False:True
and :: False:True → False:True → False:True
False :: False:True
True :: False:True
second :: C:Z → C:Z
first :: C:Z → C:Z
hole_C:Z1_0 :: C:Z
hole_False:True2_0 :: False:True
gen_C:Z3_0 :: Nat → C:Z
Lemmas:
a(gen_C:Z3_0(n5_0)) → gen_C:Z3_0(n5_0), rt ∈ Ω(1 + n50)
eqZList(gen_C:Z3_0(+(1, n148_0)), gen_C:Z3_0(n148_0)) → False, rt ∈ Ω(1 + n1480)
Generator Equations:
gen_C:Z3_0(0) ⇔ Z
gen_C:Z3_0(+(x, 1)) ⇔ C(Z, gen_C:Z3_0(x))
No more defined symbols left to analyse.
(15) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
a(gen_C:Z3_0(n5_0)) → gen_C:Z3_0(n5_0), rt ∈ Ω(1 + n50)
(16) BOUNDS(n^1, INF)
(17) Obligation:
Innermost TRS:
Rules:
a(
C(
x1,
x2)) →
C(
a(
x1),
a(
x2))
a(
Z) →
ZeqZList(
C(
x1,
x2),
C(
y1,
y2)) →
and(
eqZList(
x1,
y1),
eqZList(
x2,
y2))
eqZList(
C(
x1,
x2),
Z) →
FalseeqZList(
Z,
C(
y1,
y2)) →
FalseeqZList(
Z,
Z) →
Truesecond(
C(
x1,
x2)) →
x2first(
C(
x1,
x2)) →
x1and(
False,
False) →
Falseand(
True,
False) →
Falseand(
False,
True) →
Falseand(
True,
True) →
TrueTypes:
a :: C:Z → C:Z
C :: C:Z → C:Z → C:Z
Z :: C:Z
eqZList :: C:Z → C:Z → False:True
and :: False:True → False:True → False:True
False :: False:True
True :: False:True
second :: C:Z → C:Z
first :: C:Z → C:Z
hole_C:Z1_0 :: C:Z
hole_False:True2_0 :: False:True
gen_C:Z3_0 :: Nat → C:Z
Lemmas:
a(gen_C:Z3_0(n5_0)) → gen_C:Z3_0(n5_0), rt ∈ Ω(1 + n50)
eqZList(gen_C:Z3_0(+(1, n148_0)), gen_C:Z3_0(n148_0)) → False, rt ∈ Ω(1 + n1480)
Generator Equations:
gen_C:Z3_0(0) ⇔ Z
gen_C:Z3_0(+(x, 1)) ⇔ C(Z, gen_C:Z3_0(x))
No more defined symbols left to analyse.
(18) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
a(gen_C:Z3_0(n5_0)) → gen_C:Z3_0(n5_0), rt ∈ Ω(1 + n50)
(19) BOUNDS(n^1, INF)
(20) Obligation:
Innermost TRS:
Rules:
a(
C(
x1,
x2)) →
C(
a(
x1),
a(
x2))
a(
Z) →
ZeqZList(
C(
x1,
x2),
C(
y1,
y2)) →
and(
eqZList(
x1,
y1),
eqZList(
x2,
y2))
eqZList(
C(
x1,
x2),
Z) →
FalseeqZList(
Z,
C(
y1,
y2)) →
FalseeqZList(
Z,
Z) →
Truesecond(
C(
x1,
x2)) →
x2first(
C(
x1,
x2)) →
x1and(
False,
False) →
Falseand(
True,
False) →
Falseand(
False,
True) →
Falseand(
True,
True) →
TrueTypes:
a :: C:Z → C:Z
C :: C:Z → C:Z → C:Z
Z :: C:Z
eqZList :: C:Z → C:Z → False:True
and :: False:True → False:True → False:True
False :: False:True
True :: False:True
second :: C:Z → C:Z
first :: C:Z → C:Z
hole_C:Z1_0 :: C:Z
hole_False:True2_0 :: False:True
gen_C:Z3_0 :: Nat → C:Z
Lemmas:
a(gen_C:Z3_0(n5_0)) → gen_C:Z3_0(n5_0), rt ∈ Ω(1 + n50)
Generator Equations:
gen_C:Z3_0(0) ⇔ Z
gen_C:Z3_0(+(x, 1)) ⇔ C(Z, gen_C:Z3_0(x))
No more defined symbols left to analyse.
(21) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
a(gen_C:Z3_0(n5_0)) → gen_C:Z3_0(n5_0), rt ∈ Ω(1 + n50)
(22) BOUNDS(n^1, INF)